@extends('home/layouts/master')
@section('css')
    <style>
        body
        {
            background-attachment:fixed
        }
        #form{
            position:absolute;
            left: 400px;
            top: 400px;
        }
    </style>
@endsection
@section('title','个人背景')
<body background = {{(Session::get('user.bgd')?url(Session::get('user.bgd')):'/images/background/4.jpeg')}}>
@section('content')
<div id="form">
    <form  action="{{url('/u/'.Session::get('user.id').'/edit/bgd')}}" method="post" enctype="multipart/form-data">
        {{csrf_field()}}
        <input type="file" name="bgd" value="">
        <input type="submit" value="提交">
        <td>
            <button><a href="{{url('/u/'.Session::get('user.id').'/edit')}}">
                返回
            </a></button>
        </td>
        <span>图片格式:jpg/gif/png/jpeg,小于2MB</span>
        <span>友情提示:图片宽高比接近屏幕宽高，背景更美观</span>
    </form>
</div>
@endsection
</body>
@section('js')
@endsection
